﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EF7 RID: 3831
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueHandbookEventInfo : IMessage<RogueHandbookEventInfo>, IMessage, IEquatable<RogueHandbookEventInfo>, IDeepCloneable<RogueHandbookEventInfo>, IBufferMessage
	{
		// Token: 0x170030B2 RID: 12466
		// (get) Token: 0x0600ABE1 RID: 44001 RVA: 0x001D1469 File Offset: 0x001CF669
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueHandbookEventInfo> Parser
		{
			get
			{
				return RogueHandbookEventInfo._parser;
			}
		}

		// Token: 0x170030B3 RID: 12467
		// (get) Token: 0x0600ABE2 RID: 44002 RVA: 0x001D1470 File Offset: 0x001CF670
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueHandbookEventInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170030B4 RID: 12468
		// (get) Token: 0x0600ABE3 RID: 44003 RVA: 0x001D1482 File Offset: 0x001CF682
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueHandbookEventInfo.Descriptor;
			}
		}

		// Token: 0x0600ABE4 RID: 44004 RVA: 0x001D1489 File Offset: 0x001CF689
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueHandbookEventInfo()
		{
		}

		// Token: 0x0600ABE5 RID: 44005 RVA: 0x001D1491 File Offset: 0x001CF691
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueHandbookEventInfo(RogueHandbookEventInfo other) : this()
		{
			this.hasTakenReward_ = other.hasTakenReward_;
			this.eventHandbookId_ = other.eventHandbookId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600ABE6 RID: 44006 RVA: 0x001D14C2 File Offset: 0x001CF6C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueHandbookEventInfo Clone()
		{
			return new RogueHandbookEventInfo(this);
		}

		// Token: 0x170030B5 RID: 12469
		// (get) Token: 0x0600ABE7 RID: 44007 RVA: 0x001D14CA File Offset: 0x001CF6CA
		// (set) Token: 0x0600ABE8 RID: 44008 RVA: 0x001D14D2 File Offset: 0x001CF6D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool HasTakenReward
		{
			get
			{
				return this.hasTakenReward_;
			}
			set
			{
				this.hasTakenReward_ = value;
			}
		}

		// Token: 0x170030B6 RID: 12470
		// (get) Token: 0x0600ABE9 RID: 44009 RVA: 0x001D14DB File Offset: 0x001CF6DB
		// (set) Token: 0x0600ABEA RID: 44010 RVA: 0x001D14E3 File Offset: 0x001CF6E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EventHandbookId
		{
			get
			{
				return this.eventHandbookId_;
			}
			set
			{
				this.eventHandbookId_ = value;
			}
		}

		// Token: 0x0600ABEB RID: 44011 RVA: 0x001D14EC File Offset: 0x001CF6EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueHandbookEventInfo);
		}

		// Token: 0x0600ABEC RID: 44012 RVA: 0x001D14FA File Offset: 0x001CF6FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueHandbookEventInfo other)
		{
			return other != null && (other == this || (this.HasTakenReward == other.HasTakenReward && this.EventHandbookId == other.EventHandbookId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600ABED RID: 44013 RVA: 0x001D1538 File Offset: 0x001CF738
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.HasTakenReward)
			{
				num ^= this.HasTakenReward.GetHashCode();
			}
			if (this.EventHandbookId != 0U)
			{
				num ^= this.EventHandbookId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600ABEE RID: 44014 RVA: 0x001D1590 File Offset: 0x001CF790
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600ABEF RID: 44015 RVA: 0x001D1598 File Offset: 0x001CF798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600ABF0 RID: 44016 RVA: 0x001D15A4 File Offset: 0x001CF7A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EventHandbookId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.EventHandbookId);
			}
			if (this.HasTakenReward)
			{
				output.WriteRawTag(88);
				output.WriteBool(this.HasTakenReward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600ABF1 RID: 44017 RVA: 0x001D1600 File Offset: 0x001CF800
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.HasTakenReward)
			{
				num += 2;
			}
			if (this.EventHandbookId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EventHandbookId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600ABF2 RID: 44018 RVA: 0x001D164C File Offset: 0x001CF84C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueHandbookEventInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.HasTakenReward)
			{
				this.HasTakenReward = other.HasTakenReward;
			}
			if (other.EventHandbookId != 0U)
			{
				this.EventHandbookId = other.EventHandbookId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600ABF3 RID: 44019 RVA: 0x001D169C File Offset: 0x001CF89C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600ABF4 RID: 44020 RVA: 0x001D16A8 File Offset: 0x001CF8A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.HasTakenReward = input.ReadBool();
					}
				}
				else
				{
					this.EventHandbookId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040045D5 RID: 17877
		private static readonly MessageParser<RogueHandbookEventInfo> _parser = new MessageParser<RogueHandbookEventInfo>(() => new RogueHandbookEventInfo());

		// Token: 0x040045D6 RID: 17878
		private UnknownFieldSet _unknownFields;

		// Token: 0x040045D7 RID: 17879
		public const int HasTakenRewardFieldNumber = 11;

		// Token: 0x040045D8 RID: 17880
		private bool hasTakenReward_;

		// Token: 0x040045D9 RID: 17881
		public const int EventHandbookIdFieldNumber = 9;

		// Token: 0x040045DA RID: 17882
		private uint eventHandbookId_;
	}
}
